package com.acme.bankapp.domain;

public class Client {
	
	private Gender gender;
	private String name;
	
	private Account[] accounts;
	int numberOfAccounts;
	
	public int getNumberOfAccounts() {
		return numberOfAccounts;
	}
	public Client(String name, Gender gender) {
		this.name = name;
		this.gender = gender;
		accounts = new Account[10];
	}
	public Client() {
		this("",Gender.MALE);
	}
	
	public void getClientSituation() {
		System.out.println(gender.getStr() + name);
	}
	
	public void addAccount(Account account) {
		accounts[numberOfAccounts++] = account;
	}

	public Account[] getAccounts() {
		return accounts;
	}
		
	
}

